<template>
    <div class="css-flex box-empty control-box">
        <div class="atlas-message">
            <div class="monitoring-nav show-css">
                <electricity @goDetails="goDetails" />
            </div>
        </div>
    </div>
</template>
<script>
import facilityMove from '@/components/facilityMove.vue';
import facilitySurvey from '@/components/facilitySurvey.vue';
import electricity from '@/components/electricity.vue';
export default {
    name: 'myHome',
    // eslint-disable-next-line vue/no-unused-components
    components: {facilityMove, facilitySurvey, electricity},
    data() {
        return {
            loading: true,
            tabList: [],
        };
    },
    computed: {},
    methods: {
        goDetails({res, item}) {
            if (item === 'img') {
                this.$router.push({path: '/monitoring/imgMessage', query: {res}});
                // this.$message('暂未开通该功能')
            } else if (item === 'place') {
                this.$router.push({path: '/monitoring/placeMessage', query: {res}});
            }
        },
    },
};
</script>
<!-- lang="scss" -->
<style scoped>
.monitoring-nav >>> .el-tabs__item {
    line-height: 42px;
    background-image: url('@/assets/img/button-bj.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 160px;
    text-align: center;
    font-size: 16px;
    color: #ffffff;
}

.el-tabs__nav-wrap::after {
    height: 0;
}

.monitoring-nav >>> .el-tabs__item {
    padding: 0;
    height: 42px;
    opacity: 0.5;
}
.monitoring-nav >>> .el-loading-mask {
    background: none;
}
.monitoring-nav >>> .is-active {
    opacity: 1;
}

.monitoring-nav >>> .el-tabs__active-bar {
    display: none;
}

.monitoring-nav >>> .el-tabs__nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.monitoring-nav >>> .el-tabs__nav-scroll {
}

.monitoring-nav >>> .el-tabs__nav-wrap::after {
    display: none;
}

.monitoring-nav >>> .el-tabs__content {
    /* display: none; */
    flex-grow: 1;
}

.control-box {
    height: 100%;
}

.el-select .el-input {
    width: 130px;
}

.el-input-group {
    width: 300px;
}

/* 组件样式 */
.atlas-message {
    width: 100%;
    height: 100%;
    /* display: flex;
  flex-direction: column; */
}

.monitoring-nav {
}

.button-box {
    line-height: 42px;
    background-image: url('@/assets/img/button-bj.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 160px;
    text-align: center;
    font-size: 16px;
    color: #ffffff;
}

.monitoring-nav >>> .el-tabs__nav-prev {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: block;
    flex-shrink: 0;
}

.monitoring-nav >>> .el-tabs__nav-wrap.is-scrollable {
    padding: 0 60px;
}

.monitoring-nav >>> [class^='el-icon-'] {
    width: 42px;
    height: 42px;
    display: flex;
    background: rgba(4, 44, 91, 0.02);
    box-shadow: inset 0px 0px 8px 0px #0e5fff;
    border-radius: 5px 5px 5px 5px;
    border: 1px solid #0e5fff;
    justify-content: center;
    align-items: center;
}

.monitoring-nav >>> .el-tabs__nav-prev {
    font-size: 24px;
}

.monitoring-nav >>> .el-tabs__nav-next {
    font-size: 24px;
}

.left-icon {
    background-image: url('@/assets/img/jt-left.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.right-icon {
    background-image: url('@/assets/img/jt-right.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.show-css {
    padding: 0 10px;
    max-width: 1070px;
    margin: 0 auto;
    height: 100%;
}

.monitoring-nav >>> .el-tabs {
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.monitoring-nav >>> .el-tab-pane {
    height: 100%;
}
</style>
